<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::gpu::DeviceMemory2D类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1gpu_1_1_device_memory2_d.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1gpu_1_1_device_memory2_d-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::gpu::DeviceMemory2D类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><b><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html" title="DeviceMemory2D class">DeviceMemory2D</a></b> class  
 <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="device__memory_8h_source.html">device_memory.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::gpu::DeviceMemory2D 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1gpu_1_1_device_memory2_d.png" usemap="#pcl::gpu::DeviceMemory2D_map" alt=""/>
  <map id="pcl::gpu::DeviceMemory2D_map" name="pcl::gpu::DeviceMemory2D_map">
<area href="classpcl_1_1gpu_1_1_device_array2_d.html" alt="pcl::gpu::DeviceArray2D&lt; prob_histogram &gt;" shape="rect" coords="309,56,608,80"/>
<area href="classpcl_1_1gpu_1_1_device_array2_d.html" alt="pcl::gpu::DeviceArray2D&lt; double &gt;" shape="rect" coords="309,112,608,136"/>
<area href="classpcl_1_1gpu_1_1_device_array2_d.html" alt="pcl::gpu::DeviceArray2D&lt; float &gt;" shape="rect" coords="309,168,608,192"/>
<area href="classpcl_1_1gpu_1_1_device_array2_d.html" alt="pcl::gpu::DeviceArray2D&lt; int &gt;" shape="rect" coords="309,224,608,248"/>
<area href="classpcl_1_1gpu_1_1_device_array2_d.html" alt="pcl::gpu::DeviceArray2D&lt; unsigned short &gt;" shape="rect" coords="309,280,608,304"/>
<area href="classpcl_1_1gpu_1_1_device_array2_d.html" alt="pcl::gpu::DeviceArray2D&lt; unsigned char &gt;" shape="rect" coords="309,336,608,360"/>
<area href="classpcl_1_1gpu_1_1_device_array2_d.html" alt="pcl::gpu::DeviceArray2D&lt; pcl::PointXYZ &gt;" shape="rect" coords="309,392,608,416"/>
<area href="classpcl_1_1gpu_1_1_device_array2_d.html" alt="pcl::gpu::DeviceArray2D&lt; char4 &gt;" shape="rect" coords="309,448,608,472"/>
<area href="classpcl_1_1gpu_1_1_device_array2_d.html" alt="pcl::gpu::DeviceArray2D&lt; pcl::FPFHSignature33 &gt;" shape="rect" coords="309,504,608,528"/>
<area href="classpcl_1_1gpu_1_1_device_array2_d.html" alt="pcl::gpu::DeviceArray2D&lt; pcl::RGB &gt;" shape="rect" coords="309,560,608,584"/>
<area href="classpcl_1_1gpu_1_1_device_array2_d.html" title="DeviceArray2D class" alt="pcl::gpu::DeviceArray2D&lt; T &gt;" shape="rect" coords="309,616,608,640"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aec937e87ebc5d55c51106d3d5cae57e8"><td class="memItemLeft" align="right" valign="top"><a id="aec937e87ebc5d55c51106d3d5cae57e8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#aec937e87ebc5d55c51106d3d5cae57e8">DeviceMemory2D</a> ()</td></tr>
<tr class="memdesc:aec937e87ebc5d55c51106d3d5cae57e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty constructor. <br /></td></tr>
<tr class="separator:aec937e87ebc5d55c51106d3d5cae57e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4360ec5687b7f321e0740b9a2817ad52"><td class="memItemLeft" align="right" valign="top"><a id="a4360ec5687b7f321e0740b9a2817ad52"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4360ec5687b7f321e0740b9a2817ad52">~DeviceMemory2D</a> ()</td></tr>
<tr class="memdesc:a4360ec5687b7f321e0740b9a2817ad52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a4360ec5687b7f321e0740b9a2817ad52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e6bb28aab480fbad3c8bcd0b44c84da"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e6bb28aab480fbad3c8bcd0b44c84da">DeviceMemory2D</a> (int rows_arg, int colsBytes_arg)</td></tr>
<tr class="memdesc:a4e6bb28aab480fbad3c8bcd0b44c84da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates internal buffer in GPU memory  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e6bb28aab480fbad3c8bcd0b44c84da">更多...</a><br /></td></tr>
<tr class="separator:a4e6bb28aab480fbad3c8bcd0b44c84da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a999d25c49cdcb02383e0a05212289e00"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a999d25c49cdcb02383e0a05212289e00">DeviceMemory2D</a> (int rows_arg, int colsBytes_arg, void *data_arg, size_t step_arg)</td></tr>
<tr class="memdesc:a999d25c49cdcb02383e0a05212289e00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes with user allocated buffer. Reference counting is disabled in this case.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a999d25c49cdcb02383e0a05212289e00">更多...</a><br /></td></tr>
<tr class="separator:a999d25c49cdcb02383e0a05212289e00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae70f381a982307b17e0af3f915b14449"><td class="memItemLeft" align="right" valign="top"><a id="ae70f381a982307b17e0af3f915b14449"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae70f381a982307b17e0af3f915b14449">DeviceMemory2D</a> (const <a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a> &amp;other_arg)</td></tr>
<tr class="memdesc:ae70f381a982307b17e0af3f915b14449"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. Just increments reference counter. <br /></td></tr>
<tr class="separator:ae70f381a982307b17e0af3f915b14449"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5f7ab83f0c64c4055924ddeadc84c72"><td class="memItemLeft" align="right" valign="top"><a id="ac5f7ab83f0c64c4055924ddeadc84c72"></a>
<a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ac5f7ab83f0c64c4055924ddeadc84c72">operator=</a> (const <a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a> &amp;other_arg)</td></tr>
<tr class="memdesc:ac5f7ab83f0c64c4055924ddeadc84c72"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assigment operator. Just increments reference counter. <br /></td></tr>
<tr class="separator:ac5f7ab83f0c64c4055924ddeadc84c72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e03c08aabf9c020cbe3d92d2b3434ab"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e03c08aabf9c020cbe3d92d2b3434ab">create</a> (int rows_arg, int colsBytes_arg)</td></tr>
<tr class="memdesc:a4e03c08aabf9c020cbe3d92d2b3434ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates it with new size. If new and old sizes are equal it does nothing.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e03c08aabf9c020cbe3d92d2b3434ab">更多...</a><br /></td></tr>
<tr class="separator:a4e03c08aabf9c020cbe3d92d2b3434ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae81f9c2cf5e6c5f542a58a05b431a30c"><td class="memItemLeft" align="right" valign="top"><a id="ae81f9c2cf5e6c5f542a58a05b431a30c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae81f9c2cf5e6c5f542a58a05b431a30c">release</a> ()</td></tr>
<tr class="memdesc:ae81f9c2cf5e6c5f542a58a05b431a30c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrements reference counter and releases internal buffer if needed. <br /></td></tr>
<tr class="separator:ae81f9c2cf5e6c5f542a58a05b431a30c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af67bb317d0e95c5999927b90071b1164"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#af67bb317d0e95c5999927b90071b1164">copyTo</a> (<a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a> &amp;other) const</td></tr>
<tr class="memdesc:af67bb317d0e95c5999927b90071b1164"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs data copying. If destination size differs it will be reallocated.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#af67bb317d0e95c5999927b90071b1164">更多...</a><br /></td></tr>
<tr class="separator:af67bb317d0e95c5999927b90071b1164"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0d12aab6d2bea03fc7dcdd5974d3bf4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#af0d12aab6d2bea03fc7dcdd5974d3bf4">upload</a> (const void *host_ptr_arg, size_t host_step_arg, int rows_arg, int colsBytes_arg)</td></tr>
<tr class="memdesc:af0d12aab6d2bea03fc7dcdd5974d3bf4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uploads data to internal buffer in GPU memory. It calls <a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e03c08aabf9c020cbe3d92d2b3434ab" title="Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...">create()</a> inside to ensure that intenal buffer size is enough.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#af0d12aab6d2bea03fc7dcdd5974d3bf4">更多...</a><br /></td></tr>
<tr class="separator:af0d12aab6d2bea03fc7dcdd5974d3bf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11f9cbf4e4809268d52323e6e52a63f3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11f9cbf4e4809268d52323e6e52a63f3">download</a> (void *host_ptr_arg, size_t host_step_arg) const</td></tr>
<tr class="memdesc:a11f9cbf4e4809268d52323e6e52a63f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Downloads data from internal buffer to CPU memory. User is resposible for correct host buffer size.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11f9cbf4e4809268d52323e6e52a63f3">更多...</a><br /></td></tr>
<tr class="separator:a11f9cbf4e4809268d52323e6e52a63f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17a2b3c9f026bbf7438c01cd905e0003"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a17a2b3c9f026bbf7438c01cd905e0003">swap</a> (<a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a> &amp;other_arg)</td></tr>
<tr class="memdesc:a17a2b3c9f026bbf7438c01cd905e0003"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs swap of data pointed with another device memory.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a17a2b3c9f026bbf7438c01cd905e0003">更多...</a><br /></td></tr>
<tr class="separator:a17a2b3c9f026bbf7438c01cd905e0003"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a169f6a06520be3da61929ee1a0d1c097"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a169f6a06520be3da61929ee1a0d1c097"><td class="memTemplItemLeft" align="right" valign="top">T *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a169f6a06520be3da61929ee1a0d1c097">ptr</a> (int y_arg=0)</td></tr>
<tr class="memdesc:a169f6a06520be3da61929ee1a0d1c097"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns pointer to given row in internal buffer.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a169f6a06520be3da61929ee1a0d1c097">更多...</a><br /></td></tr>
<tr class="separator:a169f6a06520be3da61929ee1a0d1c097"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b8de8b0f1fabeddd77ed68b7e5ce01e"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a7b8de8b0f1fabeddd77ed68b7e5ce01e"><td class="memTemplItemLeft" align="right" valign="top">const T *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a7b8de8b0f1fabeddd77ed68b7e5ce01e">ptr</a> (int y_arg=0) const</td></tr>
<tr class="memdesc:a7b8de8b0f1fabeddd77ed68b7e5ce01e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns constant pointer to given row in internal buffer.  <a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a7b8de8b0f1fabeddd77ed68b7e5ce01e">更多...</a><br /></td></tr>
<tr class="separator:a7b8de8b0f1fabeddd77ed68b7e5ce01e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fe9254be3ea932c63099ecdb7c72e67"><td class="memTemplParams" colspan="2"><a id="a6fe9254be3ea932c63099ecdb7c72e67"></a>
template&lt;class U &gt; </td></tr>
<tr class="memitem:a6fe9254be3ea932c63099ecdb7c72e67"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a6fe9254be3ea932c63099ecdb7c72e67">operator PtrStep&lt; U &gt;</a> () const</td></tr>
<tr class="memdesc:a6fe9254be3ea932c63099ecdb7c72e67"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conversion to <a class="el" href="structpcl_1_1gpu_1_1_ptr_step.html">PtrStep</a> for passing to kernel functions. <br /></td></tr>
<tr class="separator:a6fe9254be3ea932c63099ecdb7c72e67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca2f9dc134a54709ac9084a6435b6c12"><td class="memTemplParams" colspan="2"><a id="aca2f9dc134a54709ac9084a6435b6c12"></a>
template&lt;class U &gt; </td></tr>
<tr class="memitem:aca2f9dc134a54709ac9084a6435b6c12"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#aca2f9dc134a54709ac9084a6435b6c12">operator PtrStepSz&lt; U &gt;</a> () const</td></tr>
<tr class="memdesc:aca2f9dc134a54709ac9084a6435b6c12"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conversion to <a class="el" href="structpcl_1_1gpu_1_1_ptr_step_sz.html">PtrStepSz</a> for passing to kernel functions. <br /></td></tr>
<tr class="separator:aca2f9dc134a54709ac9084a6435b6c12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a175782f2282dae717c1e6bafd54336b1"><td class="memItemLeft" align="right" valign="top"><a id="a175782f2282dae717c1e6bafd54336b1"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a175782f2282dae717c1e6bafd54336b1">empty</a> () const</td></tr>
<tr class="memdesc:a175782f2282dae717c1e6bafd54336b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if unallocated otherwise false. <br /></td></tr>
<tr class="separator:a175782f2282dae717c1e6bafd54336b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fc62bd30bd21517dce88ac203d34814"><td class="memItemLeft" align="right" valign="top"><a id="a4fc62bd30bd21517dce88ac203d34814"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4fc62bd30bd21517dce88ac203d34814">colsBytes</a> () const</td></tr>
<tr class="memdesc:a4fc62bd30bd21517dce88ac203d34814"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns number of bytes in each row. <br /></td></tr>
<tr class="separator:a4fc62bd30bd21517dce88ac203d34814"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f7adab9d87fe92576886591df5a5aa1"><td class="memItemLeft" align="right" valign="top"><a id="a8f7adab9d87fe92576886591df5a5aa1"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a8f7adab9d87fe92576886591df5a5aa1">rows</a> () const</td></tr>
<tr class="memdesc:a8f7adab9d87fe92576886591df5a5aa1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns number of rows. <br /></td></tr>
<tr class="separator:a8f7adab9d87fe92576886591df5a5aa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a526d188921b4d2d5e01a0911395b8b6e"><td class="memItemLeft" align="right" valign="top"><a id="a526d188921b4d2d5e01a0911395b8b6e"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a526d188921b4d2d5e01a0911395b8b6e">step</a> () const</td></tr>
<tr class="memdesc:a526d188921b4d2d5e01a0911395b8b6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns stride between two consecutive rows in bytes for internal buffer. Step is stored always and everywhere in bytes!!! <br /></td></tr>
<tr class="separator:a526d188921b4d2d5e01a0911395b8b6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a84753879e0e03f2a4f0c881c1b0bd5ca"><td class="memItemLeft" align="right" valign="top"><a id="a84753879e0e03f2a4f0c881c1b0bd5ca"></a>
void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a84753879e0e03f2a4f0c881c1b0bd5ca">data_</a></td></tr>
<tr class="memdesc:a84753879e0e03f2a4f0c881c1b0bd5ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Device pointer. <br /></td></tr>
<tr class="separator:a84753879e0e03f2a4f0c881c1b0bd5ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11ba6d5ea4944e55e75f50e36e7a29b5"><td class="memItemLeft" align="right" valign="top"><a id="a11ba6d5ea4944e55e75f50e36e7a29b5"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11ba6d5ea4944e55e75f50e36e7a29b5">step_</a></td></tr>
<tr class="memdesc:a11ba6d5ea4944e55e75f50e36e7a29b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stride between two consecutive rows in bytes for internal buffer. Step is stored always and everywhere in bytes!!! <br /></td></tr>
<tr class="separator:a11ba6d5ea4944e55e75f50e36e7a29b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab02d57cd1477c82b983b566cc5712c46"><td class="memItemLeft" align="right" valign="top"><a id="ab02d57cd1477c82b983b566cc5712c46"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ab02d57cd1477c82b983b566cc5712c46">colsBytes_</a></td></tr>
<tr class="memdesc:ab02d57cd1477c82b983b566cc5712c46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Width of the buffer in bytes. <br /></td></tr>
<tr class="separator:ab02d57cd1477c82b983b566cc5712c46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae54f6c352a08a701f34efcd342362b98"><td class="memItemLeft" align="right" valign="top"><a id="ae54f6c352a08a701f34efcd342362b98"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#ae54f6c352a08a701f34efcd342362b98">rows_</a></td></tr>
<tr class="memdesc:ae54f6c352a08a701f34efcd342362b98"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of rows. <br /></td></tr>
<tr class="separator:ae54f6c352a08a701f34efcd342362b98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f81462b6f096a06875ba96fc94372e5"><td class="memItemLeft" align="right" valign="top"><a id="a3f81462b6f096a06875ba96fc94372e5"></a>
int *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a3f81462b6f096a06875ba96fc94372e5">refcount_</a></td></tr>
<tr class="memdesc:a3f81462b6f096a06875ba96fc94372e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to reference counter in CPU memory. <br /></td></tr>
<tr class="separator:a3f81462b6f096a06875ba96fc94372e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><b><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html" title="DeviceMemory2D class">DeviceMemory2D</a></b> class </p>
<dl class="section note"><dt>注解</dt><dd>This is a BLOB container class with reference counting for pitched GPU memory. <br  />
</dd></dl>
<dl class="section author"><dt>作者</dt><dd>Anatoly Baksheev </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a4e6bb28aab480fbad3c8bcd0b44c84da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e6bb28aab480fbad3c8bcd0b44c84da">&#9670;&nbsp;</a></span>DeviceMemory2D() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pcl::gpu::DeviceMemory2D::DeviceMemory2D </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows_arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>colsBytes_arg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allocates internal buffer in GPU memory </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rows_arg</td><td>number of rows to allocate </td></tr>
    <tr><td class="paramname">colsBytes_arg</td><td>width of the buffer in bytes </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a999d25c49cdcb02383e0a05212289e00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a999d25c49cdcb02383e0a05212289e00">&#9670;&nbsp;</a></span>DeviceMemory2D() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pcl::gpu::DeviceMemory2D::DeviceMemory2D </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows_arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>colsBytes_arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data_arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>step_arg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes with user allocated buffer. Reference counting is disabled in this case. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rows_arg</td><td>number of rows </td></tr>
    <tr><td class="paramname">colsBytes_arg</td><td>width of the buffer in bytes </td></tr>
    <tr><td class="paramname">data_arg</td><td>pointer to buffer </td></tr>
    <tr><td class="paramname">step_arg</td><td>stride between two consecutive rows in bytes </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="af67bb317d0e95c5999927b90071b1164"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af67bb317d0e95c5999927b90071b1164">&#9670;&nbsp;</a></span>copyTo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::gpu::DeviceMemory2D::copyTo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs data copying. If destination size differs it will be reallocated. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>destination container </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4e03c08aabf9c020cbe3d92d2b3434ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e03c08aabf9c020cbe3d92d2b3434ab">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::gpu::DeviceMemory2D::create </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows_arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>colsBytes_arg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates it with new size. If new and old sizes are equal it does nothing. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rows_arg</td><td>number of rows to allocate </td></tr>
    <tr><td class="paramname">colsBytes_arg</td><td>width of the buffer in bytes </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a11f9cbf4e4809268d52323e6e52a63f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11f9cbf4e4809268d52323e6e52a63f3">&#9670;&nbsp;</a></span>download()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::gpu::DeviceMemory2D::download </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>host_ptr_arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>host_step_arg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Downloads data from internal buffer to CPU memory. User is resposible for correct host buffer size. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">host_ptr_arg</td><td>pointer to host buffer to download <br  />
 </td></tr>
    <tr><td class="paramname">host_step_arg</td><td>stride between two consecutive rows in bytes for host buffer <br  />
 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a169f6a06520be3da61929ee1a0d1c097"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a169f6a06520be3da61929ee1a0d1c097">&#9670;&nbsp;</a></span>ptr() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">T * pcl::gpu::DeviceMemory2D::ptr </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y_arg</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns pointer to given row in internal buffer. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">y_arg</td><td>row index <br  />
 </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;{ <span class="keywordflow">return</span> (      T*)((      <span class="keywordtype">char</span>*)<a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a84753879e0e03f2a4f0c881c1b0bd5ca">data_</a> + y_arg * <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11ba6d5ea4944e55e75f50e36e7a29b5">step_</a>); }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a11ba6d5ea4944e55e75f50e36e7a29b5"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11ba6d5ea4944e55e75f50e36e7a29b5">pcl::gpu::DeviceMemory2D::step_</a></div><div class="ttdeci">size_t step_</div><div class="ttdoc">Stride between two consecutive rows in bytes for internal buffer. Step is stored always and everywher...</div><div class="ttdef"><b>Definition:</b> device_memory.h:238</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory2_d_html_a84753879e0e03f2a4f0c881c1b0bd5ca"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory2_d.html#a84753879e0e03f2a4f0c881c1b0bd5ca">pcl::gpu::DeviceMemory2D::data_</a></div><div class="ttdeci">void * data_</div><div class="ttdoc">Device pointer.</div><div class="ttdef"><b>Definition:</b> device_memory.h:235</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a7b8de8b0f1fabeddd77ed68b7e5ce01e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b8de8b0f1fabeddd77ed68b7e5ce01e">&#9670;&nbsp;</a></span>ptr() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">const T * pcl::gpu::DeviceMemory2D::ptr </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y_arg</em> = <code>0</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns constant pointer to given row in internal buffer. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">y_arg</td><td>row index <br  />
 </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;{ <span class="keywordflow">return</span> (<span class="keyword">const</span> T*)((<span class="keyword">const</span> <span class="keywordtype">char</span>*)<a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a84753879e0e03f2a4f0c881c1b0bd5ca">data_</a> + y_arg * <a class="code" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a11ba6d5ea4944e55e75f50e36e7a29b5">step_</a>); }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a17a2b3c9f026bbf7438c01cd905e0003"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17a2b3c9f026bbf7438c01cd905e0003">&#9670;&nbsp;</a></span>swap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::gpu::DeviceMemory2D::swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a> &amp;&#160;</td>
          <td class="paramname"><em>other_arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs swap of data pointed with another device memory. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">other_arg</td><td>device memory to swap with <br  />
 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af0d12aab6d2bea03fc7dcdd5974d3bf4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0d12aab6d2bea03fc7dcdd5974d3bf4">&#9670;&nbsp;</a></span>upload()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::gpu::DeviceMemory2D::upload </td>
          <td>(</td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>host_ptr_arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>host_step_arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows_arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>colsBytes_arg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Uploads data to internal buffer in GPU memory. It calls <a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html#a4e03c08aabf9c020cbe3d92d2b3434ab" title="Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...">create()</a> inside to ensure that intenal buffer size is enough. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">host_ptr_arg</td><td>pointer to host buffer to upload <br  />
 </td></tr>
    <tr><td class="paramname">host_step_arg</td><td>stride between two consecutive rows in bytes for host buffer </td></tr>
    <tr><td class="paramname">rows_arg</td><td>number of rows to upload </td></tr>
    <tr><td class="paramname">colsBytes_arg</td><td>width of host buffer in bytes </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>gpu/containers/include/pcl/gpu/containers/<a class="el" href="device__memory_8h_source.html">device_memory.h</a></li>
<li>gpu/containers/include/pcl/gpu/containers/impl/<a class="el" href="device__memory_8hpp_source.html">device_memory.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>gpu</b></li><li class="navelem"><a class="el" href="classpcl_1_1gpu_1_1_device_memory2_d.html">DeviceMemory2D</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
